package com.wordplat.quickstart.xutils.http.body;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Created by wyouflf on 15/10/29.
 *
 * @since 2021-05-09
 */
public interface RequestBody {
    /**
     * getContentLength
     *
     * @return long
     */
    long getContentLength();

    /**
     * setContentType
     *
     * @param contentType
     */
    void setContentType(String contentType);

    /**
     * getContentType
     *
     * @return String
     */
    String getContentType();

    /**
     * writeTo
     *
     * @param out
     * @throws IOException
     */
    void writeTo(OutputStream out) throws IOException;
}
